package com.tengfei.main.question.mapper;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tengfei.common.core.mapper.BaseMapperPlus;
import com.tengfei.main.question.domain.QuestionBank;
import com.tengfei.main.question.domain.vo.QuestionBankVo;
import com.tengfei.main.user.domain.SearchEntity;
import com.tengfei.main.user.domain.vo.quBank.UserQuBankVo;
import org.apache.ibatis.annotations.Param;

/**
 * 题库Mapper接口
 *
 * @author tengfei
 * @date 2022-07-28
 */
public interface QuestionBankMapper extends BaseMapperPlus<QuestionBankMapper, QuestionBank, QuestionBankVo> {

    /**
     * 用户公开题库列表
     * @param search
     * @param page
     * @return
     */
    Page<UserQuBankVo> selectQuBankList(@Param("search") SearchEntity search, Page page);
}
